﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace CodeScrapWindow
{
    /// <summary>
    /// Interaction logic for CodeScrapControl.xaml
    /// </summary>
    public partial class CodeScrapControl : UserControl
    {
		private CodeScrapControlViewModel _viewModel;

		/// <summary>
		/// Gets the view model.
		/// </summary>
		/// <value>The view model.</value>
		internal CodeScrapControlViewModel ViewModel
		{
			get
			{
				return _viewModel;
			}
		}

		/// <summary>
		/// Initializes a new instance of the <see cref="CodeScrapControl"/> class.
		/// </summary>
		public CodeScrapControl()
		{
			InitializeComponent();

			_viewModel = new CodeScrapControlViewModel();
			this.DataContext = _viewModel;

			txtCode.Focus();
		}
    }
}
